package com.example.parkdemo.month

import androidx.lifecycle.MutableLiveData
import com.example.base.mvvm.BaseViewModel
import com.example.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import okhttp3.RequestBody
import javax.inject.Inject

@HiltViewModel
class selMonthViewModel @Inject constructor(
    val apiService: ApiService
) : BaseViewModel() {
    val monthSuccess by lazy { MutableLiveData<String>() }
    fun month(body: RequestBody) {
        executeNetWork(
            { apiService.selMonth(body) },
            monthSuccess::postValue
        )
    }
}